﻿using Ewell.Interface.Common.Model.Constant;
using Ewell.Interface.Common.Model.GateWay.Dto.InsuranceManager;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ewell.Interface.Common.Model.GateWay.GateWayUriInfo
{
    public class MedInsurPatientDubboService : GateWayUri
    {
        public override string url => "dubbo/cc.ewell.his.insurance.management.dubbo.MedInsurPatientDubboService";
        public GateWayMethod queryMedInsurPatientByExample => new QueryMedInsurPatientByExample(url);
        public GateWayMethod saveMedInsurPatient => new SaveMedInsurPatient(url);
    }

    public class QueryMedInsurPatientByExample : GateWayMethod
    {
        public QueryMedInsurPatientByExample(string baseUrl) : base(baseUrl)
        {
        }

        public override string methodName => "queryMedInsurPatientByExample";

        public override string paramClass => "co.faao.plugin.transmission.request.MessageHeader";

        public override DubboParamType paramType => DubboParamType.messageheaderDoamin;

        public override Type requestParamType => typeof(QueryMedInsurPatientReq);

        public override Type responseParamType => typeof(List<QueryMedInsurPatientResp>);
    }

    public class SaveMedInsurPatient : GateWayMethod
    {
        public SaveMedInsurPatient(string baseUrl) : base(baseUrl)
        {
        }

        public override string methodName => "saveMedInsurPatient";

        public override string paramClass => "co.faao.plugin.transmission.request.MessageHeader";

        public override DubboParamType paramType => DubboParamType.messageheaderDoamin;

        public override Type requestParamType => typeof(SaveMedInsurPatientReq);

        public override Type responseParamType => typeof(SaveMedInsurPatientResp);
    }
}
